/******************************************************************************/
/* mainwindow.h : zzg Version 1.3                                             */
/* A C++/Qt4 program : to plan scheduled computer shut down                   */
/* Ptyxs (Cassian Braconnier) - july 2010                                     */
/* Lic. GPLv3                                                                 */
/* Provided with no guaranty whatsoever.                                      */
/******************************************************************************/

//------------------------------------------------------------------------------

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

//------------------------------------------------------------------------------

#include <QMainWindow>

//------------------------------------------------------------------------------

class Zzg;

//------------------------------------------------------------------------------

class MainWindow : public QMainWindow {

        Q_OBJECT

    public:
        MainWindow();

    protected:
        void closeEvent(QCloseEvent *event); // pour demander confirmation avant de fermer

    public:
        static void  sound();

    private:
        void createActions();
        void createMenus();

        QMenu *optionsMenu;
        QMenu *helpMenu;

        QAction *soundAction;
        QAction *aboutAction;

        void readSettings();
        void writeSettings();

        Zzg *zzg;

};

//------------------------------------------------------------------------------

#endif // MAINWINDOW_H

// FIN DE MAINWINDOW.H
